lcTIN_BndGetPoint | Home |
HANDLE lcTIN_BndGetPoint ( HANDLE hTIN, int iPnt ); |
hTIN | |
Handle to a TIN object. | |
iPnt | |
Index of boundary point, varies from 0 to LC_PROP_TIN_NBNDPTS-1 . |
Handle to the TIN point, or NULL if iPnt index is out of range. |
// get coordinates of all boundary points HANDLE hTIN, hPnt; int nBndPnts, i; double X, Y; hTIN = lcBlockGetTIN( hBlock, L"Demo TIN" ); if (hTIN != 0){ nBndPnts = lcPropGetInt( hTIN, LC_PROP_TIN_NBNDPTS ); if (nBndPnts > 0){ for (i=0; i<nBndPnts; ++i){ hPnt = lcTIN_BndGetPoint( hTIN, i ); if (hPnt != 0){ X = lcPropGetFloat( hPnt, LC_PROP_TINPNT_X ); Y = lcPropGetFloat( hPnt, LC_PROP_TINPNT_Y ); } } } }